package cn.hdu.liang.strings;

public class StringTest {
    public static void main(String[] args) {
        String s = "abcdefg";
        String s2 = "abcdefg";

        char[] c = new char[10];
        /*System.out.println(s.length());
        System.out.println(s.charAt(4));
        s.getChars(0, 3, c, c[0]);
        System.out.println(c);

        System.out.println(s.toCharArray());
        System.out.println(s.equals("abc"));
        System.out.println(s.equalsIgnoreCase("ABCDEFG"));

        System.out.println(s.compareTo("abc"));
        System.out.println(s.compareToIgnoreCase("ABCDEGG"));
        System.out.println(s.contains("a"));*/

        /*System.out.println(s.startsWith("b",1));
        System.out.println(s.endsWith("g"));
        System.out.println(s.indexOf('b'));
        System.out.println(s.indexOf('a',3));
        System.out.println(s.lastIndexOf('a'));

        System.out.println(s.substring(3));
        System.out.println(s.subSequence(3,6));
        System.out.println(s.concat("abc"));
        System.out.println(s.replace("a","x"));
        System.out.println(s.toUpperCase());*/

        /*System.out.println(s.trim());
        System.out.println(String.valueOf(3));
        System.out.println(s.intern());
        System.out.println(s2.intern());
        System.out.println(s==s2);*/

    }
}
